package cate.game.framework.share;

import cp.game.framework.ApiCaller;
import cp.solution.business.gm.KfRebateConf;
import easy.java.util.ListTool;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
/** 所有游戏服共享配置 */
public class ShareConf {

    public List<KfRebateConf> kfRebConfList;

    public void setup(ApiCaller apiCaller) {
        this.kfRebConfList = apiCaller.pc().console.kfRebateConf.all();
        for(KfRebateConf cnf : kfRebConfList) {
            log.debug("用于客服返利的配置 {}", cnf);
        }
        if(ListTool.isEmpty(this.kfRebConfList)) {
            log.warn("尚未配置用于客服返利的配置！请联系运营提前配置好客服返利配置后重启游戏服");
        }
    }

}
